<template>
    <buy-return-bill-form :dialog="false" :row="rowData" :detail="detail" :buy="fromBuy" />
</template>

<script>
export default {
    name: "JxcBuyReturnBillDetail",
    components: {
        BuyReturnBillForm: () => import("../components/BuyReturnBillForm.vue"),
    },
    computed: {
        rowData() {
            if (this.$utils.isNotEmpty(this.$route.query.sid)) {
                return {
                    sid: this.$route.query.sid,
                };
            }
            return {};
        },
        detail() {
            return this.$route.path === '/jxcBuyReturnBillDetailView';
        },
        fromBuy() {
            return this.$route.path === '/jxcBuyReturnBillDetailOrder';
        },
    },
}
</script>

<style scoped lang="less">

</style>
